<?php
namespace app\index\controller;
use think\Controller;
use think\Session;
use think\Cookie;
use Dompdf\Dompdf;
class Pdftohtml extends Controller
{
    //登录
    public function index(){
        $dompdf = new Dompdf();
        $str = "your html str";
        $dompdf->loadHtml($str,"UTF-8");
        $dompdf->setPaper(array(0,0,1000,2000));
        $dompdf->render();
        $dompdf->stream();
        die();
    }


}